// 枚举状态码
enum Code {
    success = 200,
    denied = 401,
    error = 409,
}

// 枚举状态码对应的消息
enum CodeMessage {
    success = '请求成功',
    denied = '无权限',
    error = '系统异常',
}

// 状态类型，只能是Code中的状态
type codeType = keyof typeof Code

export {Code, codeType, CodeMessage}
